import {axios} from "../../utils/request";

//往来单位
const api = {
    list: "/erp/partner/page",  
    save: "/erp/partner/save",  
    delete: "/erp/partner/delete",
}
/**
 * 列表
 */
export function list(parameter) {
    return axios({
      url: api.list,
      method: "get",
      params: parameter
    });
  }

/**
 * 保存
 */
export function save(parameter) {
  return axios({
    url: api.save,
    method: "post",
    data: parameter
  });
}

/**
 * 删除
 */
export function remove(parameter) {
  return axios({
    url: api.delete,
    method: "delete",
    params: parameter
  });
}